import 'package:flutter/material.dart';
import 'package:flutter_learn/fun/home/detail_shop.dart';
import 'package:flutter_learn/router/base_router_urls.dart';
import 'package:flutter_learn/router/handlers/router_handler.dart';
import 'package:go_router/go_router.dart';

import '../../main_tab.dart';
import '../handlers/base_handler_list.dart';
import '../handlers/router_key.dart';
import 'home_router_urls.dart';

class HomeHandlerList extends BaseHandlerList {
  @override
  List<Handler> exportHandlerList() {
    return [
      Handler(RouterKey(BaseRoutersUrls.home), handlerFunc: (BuildContext context, GoRouterState state) => const HomeTab()),
      Handler(RouterKey(HomeRouterUrls.homeDetail), handlerFunc: (BuildContext context, GoRouterState state) => const DetailHome()),
    ];
  }
}
